package org.hxyjs.service;


import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Press;
import org.hxyjs.page.PageInfo;

public interface PressService {
    /**
     * 查询全部管理员
     * @return
     */
    public DTO<Press> getAllPresss() throws Exception;
    /**
     * 删除管理员
     * @return
     */
    public DTO<Press> deletePressByPrno(String prno) throws Exception;
    /**
     * 修改管理员
     * @return
     */
    public DTO<Press> updatePressByPrno(Press press) throws Exception;
    /**
     * 增加管理员
     * @return
     */
    public DTO<Press> addPress(Press press) throws Exception;
    /**
     * 分页查询管理员
     * @return
     */
    public DTO<Press> getPressByPage(PageInfo pageInfo) throws Exception;
    /**
     *
     * @return
     */
    public DTO<Press> selectPressWithSalesagentAndBooks(String prno) throws Exception;
}

